import java.util.Scanner;

public class Array02 {
	public static void main(String[] args){
		//定义数组的几种方式：
		double[] scores = new double[5];
		double scores2[] = new double[5];

		double[] scores3;
		scores = new double[4];

		Scanner scanner  = new Scanner(System.in);
		//循环输入
		for(int i = 0; i < scores.length; i++){
			scores[i] = scanner.nextDouble();
		}

		//输出，遍历数组
		for(int i = 0; i < scores.length; i++){
			System.out.printf("scores[%d] = %d\n",i,scores[i]);
		}
		//静态初始化
		int [] a = {1,2,3,4,5};
	}
}